package com.wze.wze.Service;

import com.wze.wze.Entity.Music;
import com.wze.wze.Impl.MusicImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MusicService implements MusicImpl {
    @Resource
    MusicImpl music;
    @Override
    public int addMusic(String MusicName, String Music, String MusicImage, String Musict, String MusicLyric,int Singer) {
        return music.addMusic(MusicName,Music,MusicImage,Musict,MusicLyric,Singer);
    }

    @Override
    public Music getMusicById(int id) {
        return music.getMusicById(id);
    }

    @Override
    public int upMusic(Music music1) {
        return music.upMusic(music1);
    }

    @Override
    public int delMusicById(int id) {
        return music.delMusicById(id);
    }

    @Override
    public List<Music> getMusicList(int Start, int Page, int id, String MusicName) {
        return music.getMusicList(Start,Page,id,MusicName);
    }

    @Override
    public List<Music> getUnMusicList(int Start, int Page, int id, int Sid) {
        return music.getUnMusicList(Start, Page, id, Sid);
    }
}
